<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="myfn" uri="http://www.jqb.com/functions" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>测试jstl函数库</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <a href="jstlfn.do">测试jstl函数库</a>
    <hr>
    <li>测试fn:length</li><br>
    (jsp脚本)fn.length=<%=((String)request.getAttribute("fn")).length() %><br>
    jstl函数库,函数调用必须在el表达式中,格式[前缀:函数名(值)]
    fn.length=${fn:length(fn)}<br>
    list.length=${fn:length(list) }<br>
    <li>测试自定义函数库</li><br>
    name=${myfn:sayHello("jack") }<br>
    name=${myfn:sayHello(name) }<br>
  </body>
</html>
